var obj={
    weight:56,
    height:180,
    sayname:function(){
        console.log('这是我的方法');
    },
    clazz:{
        class:2021,
        name:'tyut'
    }
};
delete obj.weight;
delete obj.sayname;
console.log(obj);